package org.lvws.hellospringcloud.helloalibaba.hellonacos.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.management.ManagementFactory;

@RequestMapping("/nacos/provider")
@RestController
public class HelloNacosProviderController {

    @GetMapping("/hello")
    public String hello() {
        return "hello nacos provider " + ManagementFactory.getRuntimeMXBean().getName();
    }

}
